projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abb4c08
)
(unlock_all_files): Don't call unlock_file;
author
Karl Heuer
<kwzh@gnu.org>
Thu, 23 Oct 1997 06:53:36 +0000
(06:53 +0000)
committer
Karl Heuer
<kwzh@gnu.org>
Thu, 23 Oct 1997 06:53:36 +0000
(06:53 +0000)
do the work directly, and avoid calling Fexpand_file_name.
src/filelock.c
patch
|
blob
|
history
diff --git
a/src/filelock.c
b/src/filelock.c
index 55be9fb862897be33c677a0e2a6e774da294679e..c98afdd30d1834454aac195c1fa9c5badea2b0ba 100644
(file)
--- a/
src/filelock.c
+++ b/
src/filelock.c
@@
-385,7
+385,14
@@
unlock_all_files ()
{
b = XBUFFER (XCONS (XCONS (tail)->car)->cdr);
if (STRINGP (b->file_truename) && BUF_SAVE_MODIFF (b) < BUF_MODIFF (b))
- unlock_file (b->file_truename);
+ {
+ register char *lfname;
+
+ MAKE_LOCK_NAME (lfname, b->file_truename);
+
+ if (current_lock_owner (0, lfname) == 2)
+ unlink (lfname);
+ }
}
}
\f